package com.qfedu.wfx.manager.goods.service.impl;

import com.qfedu.wfx.manager.goods.mapper.GoodsMapper;
import com.qfedu.wfx.manager.goods.po.WxbGood;
import com.qfedu.wfx.manager.goods.service.IgoodService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class goodService implements IgoodService{

    @Resource
    private GoodsMapper goodsMapper;

    @Override
    public List<WxbGood> queryAllGoods() {
        List<WxbGood> wxbGoods = goodsMapper.queryAllGoods();
        return wxbGoods;
    }

    @Override
    public void updateGoodsState(Integer state, String goodId) throws Exception{
        goodsMapper.updateGoodsState(state, goodId);
    }
}
